function indexRouter(request,reply){
    reply.file('readme.md');
}

function docRouter(request,reply){
    return reply.redirect('/documentation')
}

module.exports=[{
    method: 'GET',
    path: '/',
    handler:indexRouter
},{
    method: 'GET',
    path: '/doc',
    handler:docRouter
},{
    method: 'GET',
    path: '/index',
    handler:function(rq,rp){
        rp.file('index.html');
    }
},{
    method: 'GET',
    path: '/upload/{fileName}',
    handler:function(rq,rp){
        rp.file(`upload/${rq.params.fileName}`);
    }
},{
    method: 'GET',
    path: '/readme',
    handler: function (request, reply) {
        reply.file('readme.md');
    }
}]